package com.mmy.fta.usercenter.repository;

import com.mmy.fta.usercenter.dto.CouponDTO;
import com.mmy.fta.usercenter.entity.CouponEntity;
import com.ymm.common.rpc.YmmResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CouponEntityMapper {
    int insert(CouponEntity record);

    int insertSelective(CouponEntity record);

    CouponEntity selectByPrimaryKey(Long id);

    List<CouponEntity> selectByOpenId(String openId);

    int updateByPrimaryKeySelective(CouponEntity record);

    int updateByPrimaryKey(CouponEntity record);

    Double queryCouponAmountById(Long couponId);

    List<CouponEntity> queryShipperCoupon(String shipperOpenId);

    int selectCoupons10(String openId);

    int selectCoupons20(String openId);

    int selectCoupons30(String openId);

    List<CouponEntity> selectCoupons(String openId);

    int selectCoupons95(String openId);

    int selectCoupons85(String openId);
}